<html>
<head>
    <title>添加</title>
</head>
<link rel="stylesheet" href="/static/layui/css/layui.css" />
<body>
<form class="layui-form" lay-filter="detail"   action="" >
    <div class="layui-form-item">
        <label class="layui-form-label">房屋名称：</label>
        <div class="layui-input-inline">
            <input type="tel" name="h_area" id="h_area" lay-verify="required" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">租户名称：</label>
        <div class="layui-input-inline layui-col-md4">
            <input type="text" name="l_name" id="l_name"  required  lay-verify="required" placeholder="租户名称" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">缴纳金额：</label>
        <div class="layui-input-inline">
            <input type="text" name="r_money" id="r_money" required  lay-verify="required" placeholder="缴纳金额" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">缴费时间：</label>
        <div class="layui-input-inline">
            <input type="text" name="r_time" id="r_time" required  lay-verify="required" placeholder="缴费时间" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注：</label>
        <div class="layui-input-inline layui-col-md4">
            <textarea placeholder="请输入内容" name="r_remark" id ="r_remark"   class="layui-textarea"></textarea>
        </div>
    </div>
</form>
</body>

<script src="/static/js/system.js"></script>
<script src="/static/js/jquery-3.3.1.js"></script>
<script src="/static/layui/layui.js"></script>
<script>
    $(function () {
        $("input").prop("disabled","disabled");
    })
    layui.use(['form','layer'], function(){
        var form = layui.form;
        $.ajax({
            url:'/RendServlet?action=findById',
            type:"post",
            dataType:"json",
            data:{"r_id":getQueryString("r_id")},
            success:function (da) {
                if (da.code == 200) {
                    //form.val("detail", da.list);
                    form.val("detail",{
                       "h_area":da.date.h_area+da.date.h_estate+da.date.h_unitNumber,
                         "l_name":da.date.l_name,
                         "r_money":da.date.r_money,
                        "r_time": layui.util.toDateString(da.date.r_time, 'yyyy-MM-dd'),
                         "r_remark":da.date.r_remark
                     });
                } else {
                    parent.layer.msg("详情查询失败！");
                }
            }
        });
    });

</script>
</html>